home *** CD-ROM | disk | FTP | other *** search
- Path: Inter.NL.net!usenet
- From: Auke.Reitsma@net.HCC.nl (Auke Reitsma)
- Newsgroups: comp.lang.c
- Subject: Re: Help please: White background in text mode (Borland Turbo C)
- Date: Fri, 15 Mar 1996 23:03:58 GMT
- Organization: Inter.NL.net, The Internet Provider in The Netherlands.
- Message-ID: <4ictb1$736@altrade.nijmegen.inter.nl.net>
- References: <4iar74$l70@cs3.brookes.ac.uk>
- Reply-To: Auke.Reitsma@net.HCC.nl
- NNTP-Posting-Host: rt99-14.rotterdam.nl.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Krunchie <95155580@brookes.ac.uk> wrote:
-
- > I am writing a program that needs to have black text on a white
- > background ( Using Borland Turbo C ). The nearest I can achieve is black
- > text on a light grey background which is not good enough!!
-
- > Does anybody know how I can achieve my goal? Is there some way I can
- > change the text mode background pallete of seven colours??
-
- You can toggle the blinkbit to get bright background colors ...
-
- void setblinkbit(int state) /* state: 0 = blink off 1 = blink on */
- {
- union REGS regs;
-
- regs.x.ax = 0x1003;
- regs.x.bx = (state) ? 1 : 0;
- int86(0x10, ®s, ®s);
- }
-
- Any significantly other answer is wrong.
-
-
- Greetings from Delft, The Netherlands.
-
- Auke Reitsma
-
-